----------------------------------------------------------------------------------------------------------------------------------
--[[

    蜂箱额外收获组件

]]--
----------------------------------------------------------------------------------------------------------------------------------
local hutao_com_bee_box_ex_harvest = Class(function(self, inst)
    self.inst = inst

    self.ex_results = {}

    self._ex_result_str = "[]"
    self._ex_result_str_net = net_string(inst.GUID,"hutao_com_bee_box_ex_harvest_result_update","hutao_com_bee_box_ex_harvest_result_update")
    inst:ListenForEvent("hutao_com_bee_box_ex_harvest_result_update",function(inst)
        self._ex_result_str = self._ex_result_str_net:value()
        local succeed,ret = pcall(json.decode,self._ex_result_str)
        if succeed then
            self.ex_results = ret
        end
    end)


end)
------------------------------------------------------------------------------------------------------------------------------
---
    function hutao_com_bee_box_ex_harvest:SetExResultStr(str)
        if TheWorld.ismastersim then
            self._ex_result_str_net:set(str)
        end
        self._ex_result_str = str
    end
------------------------------------------------------------------------------------------------------------------------------
---
    function hutao_com_bee_box_ex_harvest:HasAnyExResult()
        return #self.ex_results > 0
    end
------------------------------------------------------------------------------------------------------------------------------
return hutao_com_bee_box_ex_harvest







